package com.tjetc.dao;

import org.apache.ibatis.annotations.Param;

public interface LikesMapper {

    int findSpotLike(@Param("user_id") Long user_id, @Param("spot_id") Long spot_id);
    int insertSpot(@Param("user_id") Long user_id, @Param("spot_id") Long spot_id);

    int insertRegion(@Param("user_id") Long user_id, @Param("region_id") Long region_id);

    int insertTravelogue(@Param("user_id") Long user_id, @Param("travelogue_id") Long travelogue_id);

    int insertGuide(@Param("user_id") Long user_id, @Param("guide_id") Long guide_id);

    // 删除点赞记录
    int deleteSpot(@Param("bookmark_id") Long bookmark_id);

    int deleteRegion(@Param("bookmark_id") Long bookmark_id);

    int deleteTravelogue(@Param("bookmark_id") Long bookmark_id);

    int deleteGuide(@Param("bookmark_id") Long bookmark_id);

    int findCityLike(Long userId, Long spotId);

    int findyoujiLike(Long userId, Long spotId);

    int findGuideLike(Long userId, Long spotId);
}
